<script>
	import Request from "@/utils/request"
	import Api from "@/utils/api"
	import WxApi from "@/utils/global"
	export default {
		// 全局数据
		globalData: {
			appName: 'XX小程序',
			appId: uni.getStorageSync('appid'),
			secret: '10031c7c83680cdd56da469a271c9b86', //小程序secret
			grant_type: 'authorization_code', //授权方式
		},
		onLaunch: function() {
			wx.hideTabBar()
			/* 当前运行环境判断 */
			// #ifdef MP
			uni.setStorageSync('platform', 'wx')
			uni.setStorageSync('appid', uni.getAccountInfoSync().miniProgram.appId)
			// 获取openid
			// WxApi.getOpenId();
			// #endif

			// #ifdef H5
			uni.setStorageSync('platform', 'H5')
			// #endif

			// #ifdef APP-PLUS
			uni.setStorageSync('platform', 'APP-PLUS')
			// #endif
		},
		methods: {},
		onShow: function() {
			wx.hideTabBar()
			console.log('App Show');
		},
		onHide: function() {

		}
	};
</script>

<style scoped lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	@import './static/free.css';

	page {
		height: 100%;
	}



	.safe-area {
		bottom: env(safe-area-inset-bottom)
	}

	uni-checkbox {
		border-radius: 50% !important;
	}
</style>
<style>
	.quexian_word {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* 	.quexian_word:hover {
		overflow: visible;
		white-space: normal;
		text-overflow: inherit;
	} */
</style>